package com.jobsleaf.propertytester;

import java.util.ArrayList;
import java.util.List;

public class TableUtility 
{ 
	static List<StudentInfo> studentList;
	public static List<StudentInfo> getStudentList()
	{
		String[] rollNo = new String[]{"1","2","3","4"};
		String[] studentName = new String[]{"Ashok","Kumar","Ramya","Sneha"};
		String[] studentAge = new String[]{"30","20","31","22"};
		String[] dob = new String[]{"19-june","15-aug","13-oct","12-oct"};
		String[] fatherName = new String[]{"Abc","Xyz","Rr","Ss"};
		studentList = new ArrayList<StudentInfo>();

		for (int i = 0 ;i<rollNo.length;i++)
		{
			StudentInfo studentInfo = new StudentInfo();
			studentInfo.setRollNo(rollNo[i]);
			studentInfo.setStudentName(studentName[i]);
			studentInfo.setStudentAge(studentAge[i]);
			studentInfo.setStudentDOB(dob[i]);
			studentInfo.setFatherName(fatherName[i]);
			studentList.add(studentInfo);
		}
		return studentList;
	}
	
}
